<template></template>
<script lang="ts" setup>
import { initTheme } from '@/store/theme';
import { initUserInfo } from '@/store/user';
import { onLaunch } from '@dcloudio/uni-app';

onLaunch(() => {
  // 初始化主题
  initTheme();

  // 初始化用户信息
  initUserInfo();
});
</script>
<style>
/* 自定义图标 */
@import '@/static/fonts/iconfont.css';

/* 主题颜色 - 亮色模式 */
page,
:root,
uni-page-body {
  --theme-primary: #8E2DE2;
  --theme-secondary: #4A00E0;
  --theme-gradient: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary));
  --theme-background: #F5F9FF;
  --theme-card: #FFFFFF;
  --theme-text: #333333;
  --theme-text-secondary: #666666;
  --theme-text-light: #999999;
  --theme-primary-light: rgba(142, 45, 226, 0.08);
  --theme-primary-border: rgba(142, 45, 226, 0.15);
}

/* 婚礼主题 */
.theme-wedding {
  --theme-primary: #FF9999;
  --theme-secondary: #FF5E5E;
  --theme-gradient: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary));
  --theme-background: #F5F9FF;
  --theme-card: #FFFFFF;
  --theme-text: #333333;
  --theme-text-secondary: #666666;
  --theme-text-light: #999999;
  --theme-primary-light: rgba(255, 153, 153, 0.08);
  --theme-primary-border: rgba(255, 153, 153, 0.15);
}

/* 满月主题 */
.theme-baby {
  --theme-primary: #5B9EE7;
  --theme-secondary: #4A7FBA;
  --theme-gradient: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary));
  --theme-background: #F5F9FF;
  --theme-card: #FFFFFF;
  --theme-text: #333333;
  --theme-text-secondary: #666666;
  --theme-text-light: #999999;
  --theme-primary-light: rgba(91, 158, 231, 0.08);
  --theme-primary-border: rgba(91, 158, 231, 0.15);
}

/* 暗黑模式 */
.dark-mode {
  --theme-primary: #8E2DE2;
  --theme-secondary: #4A00E0;
  --theme-gradient: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary));
  --theme-background: #1a1a1a;
  --theme-card: #2d2d2d;
  --theme-text: #ffffff;
  --theme-text-secondary: #bbbbbb;
  --theme-text-light: #888888;
  --theme-primary-light: rgba(142, 45, 226, 0.15);
  --theme-primary-border: rgba(142, 45, 226, 0.25);
}

/* 全局页面背景色 */
page {
  background-color: var(--theme-background);
}

/*  #ifndef  WEB  */
::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
  color: transparent;
}

/* #endif */
</style>